/*
 * Copyright (c) 2017,重庆阿莫比科技有限公司,All Rights Reserved.
 */
package com.wowocai.btchina.enums;

/**
 * <br/>
 * Date: 2017年1月11日 下午5:07:45 <br/>
 * 
 * @Author 刘建成
 * @Version
 */
public enum ApiResultEnums {
    SUCCESS(200, true, "OK"), PARA_ERRORS(201, false, "PARAMETERS ERROR,INVALID REQUEST"), SYS_ERRORS(202, false,
            "SYSTEM ERROR"), REQUEST_METHOD_UNSUPPORTED(203, false, "REQUEST METHOD UNSUPPORTED"), PAGE_NOT_FOUND(404,
                    false, "PAGE NOT FOUND"), OTHER_ERRORS(999, false, "OTHER ERRORS");

    private int code;

    private boolean success;

    private String msg;

    /**
     * Creates a new instance of ResultCodeEnum.
     */
    private ApiResultEnums(int code, boolean success, String msg) {
        this.code = code;
        this.success = success;
        this.msg = msg;
    }

    public int getValue() {
        return this.code;
    }

    public int getCode() {
        return this.code;
    }

    /**
     * msg.
     * 
     * @return the msg
     */

    public String getMsg() {
        return msg;
    }

    /**
     * success.
     * 
     * @return the success
     */

    public boolean isSuccess() {
        return success;
    }

}
